<!DOCTYPE html>
<html>
<head>
    <title>"image/" MIME as script throws error when blocked.</title>
    <script src="/resources/testharness.js"></script>
    <script src="/resources/testharnessreport.js"></script>
<body>
    <script>
        setup({single_test: true});

        function scriptError() {
            done();
        }
        function scriptLoad() {
            assert_unreached('Script loaded.');
        }

        document.write('<script onload="scriptLoad()" onerror="scriptError()" src="/loading/resources/image2.png"><' + '/script>');
    </script>
</body>
</html>
